<?php
/**
 * Created by PhpStorm.
 * User: allen
 * Date: 2019/3/8
 * Time: 12:51
 */

namespace app\index\validate;

use think\Validate;

class Article extends Validate{
    protected $rule =   [
        'title'  => 'require',
        'extend'   => 'require',
        'content' => 'require',
        'image'=> 'require'
    ];

    protected $message  =   [
        'title.require' => '文章标题必填',
        'extend.require'     => '公众号必填',
        'content.require'   => '文章内容必填',
        'image.require'=> '封面图必填'
    ];
}
